package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author centurion
 * @description: TODO
 * @date 2024/8/27
 */
@FeignClient("gulimall-coupon") //直接请求服务
// @FeignClient("gulimall-gateway") //经过网关
public interface WareFeignService {
    @RequestMapping("/product/spuinfo/info/{skuId}") //直接请求服务
    // @RequestMapping("/api/product/spuinfo/info/{skuId}") //经过网关
    R info(@PathVariable("skuId") Long skuId);
}
